projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9da52f8
)
arm: Update our 'ret' assembler macro slightly
author
Tom Rini
<
[email protected]
>
Thu, 2 Mar 2017 14:59:30 +0000
(09:59 -0500)
committer
Tom Rini
<
[email protected]
>
Fri, 17 Mar 2017 18:15:11 +0000
(14:15 -0400)
We only support cores that do Thumb-1 or later. So we add a comment to
explain this and remove the architecture test.
Cc: Albert ARIBAUD <
[email protected]
>
Cc: Mans Rullgard <
[email protected]
>
Signed-off-by: Tom Rini <
[email protected]
>
arch/arm/include/asm/assembler.h
patch
|
blob
|
history
diff --git
a/arch/arm/include/asm/assembler.h
b/arch/arm/include/asm/assembler.h
index c56daf2a1f69b2a64f804642128bf08bcd01f5bf..d24be2d484fe67977257f39e18cf16338f7b1932 100644
(file)
--- a/
arch/arm/include/asm/assembler.h
+++ b/
arch/arm/include/asm/assembler.h
@@
-57,17
+57,17
@@
#define PLD(code...)
#endif
+/*
+ * We only support cores that support at least Thumb-1 and thus we use
+ * 'bx lr'
+ */
.irp c,,eq,ne,cs,cc,mi,pl,vs,vc,hi,ls,ge,lt,gt,le,hs,lo
.macro ret\c, reg
-#if defined(__ARM_ARCH_5E__)
- mov\c pc, \reg
-#else
.ifeqs "\reg", "lr"
bx\c \reg
.else
mov\c pc, \reg
.endif
-#endif
.endm
.endr